-- GENERATED SPELL FOR [Fathom Sporebat] --


function spell0_22120(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(25778,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22120', 645, 1)
end

function Sorts_22120(pUnit, Event)
local choix_sorts_22120 = math.random(0, 0)
if choix_sorts_22120 == 0 then
pUnit:RegisterEvent('spell0_22120', 1, 1)
end
end

function mob22120_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22120', math.random(1500, 3000), 1)
end

function mob22120_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22120_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22120_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22120, 1, 'mob22120_Action')
RegisterUnitEvent(22120, 2, 'mob22120_Leave')
RegisterUnitEvent(22120, 3, 'mob22120_Kill')
RegisterUnitEvent(22120, 4, 'mob22120_Die')
